import Layout from '@/views/layout/layout_system'
import systemIndex from '@/views/system/index'
/*系统管理Router */
const systemRouter = {
  path:'/system',
  name:'system',
  component:Layout,
  redirect:'/system/auth',
  meta: {
    requiresAuth: true
  },
  children:[
    {
      path:'/system/auth',   
      component:systemIndex,
      redirect:'/system/auth/user',
      children:[
        {path:'/system/auth/user',component:()=>import('@/views/system/auth/user')},
        {path:'/system/auth/role',component:()=>import('@/views/system/auth/role')},
        {path:'/system/auth/menu',component:()=>import('@/views/system/auth/menu')},
      ]
    },
    {path:'/system/rule',component:()=>import('@/views/system/inspec_rule')},
    {path:'/system/patrol',component:()=>import('@/views/system/river_patrol')},
    {path:'/system/divis',component:()=>import('@/views/system/division')},
    {path:'/system/patl',component:()=>import('@/views/system/patrol_times')},
    {path:'/system/log',component:()=>import('@/views/system/log')},
    {path:'/system/flk',component:()=>import('@/views/system/friend_link')},
    {path:'/system/set',component:()=>import('@/views/system/set')},
    {
      path:'/system/news',   
      component:systemIndex,
      redirect:'/system/news/add',
      children:[
        {path:'/system/news/add',component:()=>import('@/views/system/news/add_news')},
        {path:'/system/news/audit',component:()=>import('@/views/system/news/audit_news')},
      ]
    },
    {path:'/system/demo',component:()=>import('@/views/system/demo')},
    {path:'/system/demo1',component:()=>import('@/views/system/demo1')},
    {path:'/system/demo2',component:()=>import('@/views/monitor/three_dimen')},
  ]
}
export default systemRouter